package com.rest.demo.mybatisdemo.mapper;

import com.rest.demo.mybatisdemo.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 * @decription
 * @Date 2017-11-14 15:48
 */
@Mapper
public interface AccountMapper {

    int add(@Param("name") String name, @Param("money") double money);

    int update(@Param("name") String name, @Param("money") double money, @Param("id") int  id);

    int delete(int id);

    Account findAccount(@Param("id") int id);

    List<Account> findAccountList();
}
